<template>
  <basic-container>
    <basic-header title="账户管理" />
    <apply-table :action="action">
      <template slot="slot-cityCode" slot-scope="{data}">{{cityCodMap[data] &&cityCodMap[data].value}}</template>
      <template slot="slot-provinceCode" slot-scope="{data}">{{cityCodMap[data] &&cityCodMap[data].value}}</template>
    </apply-table>
  </basic-container>
</template>
<script>
import ApplyTable from "@/components/ApplyTable";
import actionTypes from "@/const/action";
import { mapGetters } from "vuex";
export default {
  name: "account",
  components: { ApplyTable },
  data() {
    return {
      action: actionTypes.ACCOUNT_AUTH
    };
  },
  computed: {
    ...mapGetters("dic", ["cityCodMap"])
  },
  methods: {
    handleEdit(row) {
      console.log(row);
    },
    handleDelete(row) {
      console.log(row);
    },
    handleAdd() {
      console.log(1);
    }
  }
};
</script>
